//
//  VideoListCell.swift
//  LearnDemo
//
//  Created by 振轩 on 2018/4/4.
//  Copyright © 2018年 振轩. All rights reserved.
//

import UIKit

class VideoListCell: UITableViewCell {
    @IBOutlet weak var titleLebel: UILabel!
    
    
    @IBOutlet weak var thumImageView: UIImageView!
    
    @IBOutlet weak var viewCountLabel: UILabel!
    
    @IBOutlet weak var collectLabel: UILabel!
    
    
    var mode:ArticleMode?{
        didSet{
            thumImageView.loadWebImage(withName: mode?.thumb, andIsOrgin: true)
            viewCountLabel.text = "\(String(describing: mode!.viewNum))"+"次"
            titleLebel.text=mode?.title
          
            collectLabel.text = "\(String(describing: mode!.collectNum))"+"次"
        }
        
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
